Icon_descr is the description, not the icon text. Duh!
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 16 Oct 2002 05:36:27 +0000 (05:36 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 16 Oct 2002 05:36:27 +0000 (05:36 +0000)
gpsbabel/gpsutil.c

index 79103d76388f7580dee43a30c4bf9f832323ba79..19e1a06e6a53a6438d6656032f752c5267eeb9db 100644 (file)
@@ -70,8 +70,7 @@ data_read(void)
                wpt_tmp->position.longitude.degrees = ilon + (lon - ilon)*(100.0/60.0);
                ilat = (int)(lat);
                wpt_tmp->position.latitude.degrees = ilat + (lat - ilat) * (100.0/60.0);
-               wpt_tmp->icon_descr = xstrdup(icon);
-
+               wpt_tmp->icon_descr = mag_find_descr_from_token(icon);
                waypt_add(wpt_tmp);
        }
 }